<?php
/**
 * Created by PhpStorm.
 * User: 氓羽
 * Date: 2018-4-22
 * Time: 21:12
 */
    require ('../smarty/Smarty.class.php');

    $smarty = new Smarty();

    //Smarty “自编口诀-五配置两方法”
    //五配置介绍
    $smarty -> left_delimiter = "{"; //左定界符
    $smarty -> right_delimiter = "}"; //右定界符
    $smarty -> template_dir = "tpl"; //html模板的地址
    $smarty -> compile_dir  = "template_c"; //模板编译生成的文件
    $smarty -> cache_dir = "cache"; //缓存

    $smarty ->assign('time',time());

    $smarty->display('content.tpl');

